import request from '@/utils/request';

export async function getG120motorByPage(params: any) {
  return request('/api/drivepara/getG120motorByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addG120motor(params: any) {
  return request('/api/drivepara/addG120motor', {
    method: 'POST',
    data: params,
  });
}

export async function delG120motor(params: any) {
  return request('/api/drivepara/delG120motor', {
    method: 'POST',
    data: params,
  });
}


export async function updateG120motor(params: any) {
  return request('/api/drivepara/updateG120motor', {
    method: 'POST',
    data: params,
  });
}

export async function getG120motorList(params: any) {
  return request('/api/drivepara/getG120motorList', {
    method: 'POST',
    data: params,
  });
}

export async function uploadG120MotorExcel(params: any) {
  return request('/api/drivePara/uploadG120MotorExcel', {
    method: 'POST',
    requestType: 'form',
    data: params,
  });
}